var Client = require('ssh2').Client;

var conn = new Client();
conn.on('ready', function () {
  console.log('Client :: ready');
  conn.forwardOut('192.168.100.102', 8000, '127.0.0.1', 80, function (err, stream) {
    if (err)
      throw err;
    stream.on('close', function () {
      console.log('TCP :: CLOSED');
      conn.end();
    }).on('data', function (data) {
      console.log('TCP :: DATA: ' + data);
    }).end([
        'HEAD / HTTP/1.1',
        'User-Agent: curl/7.27.0',
        'Host: 127.0.0.1',
        'Accept: */*',
        'Connection: close',
        '',
        ''
      ].join('\r\n'));
  });
}).connect({
  host : '168.39.6.84',
  port : 8080
});
